Click here to Skip to main content
15,886,873 members
Articles / Web Development / ASP.NET
Article

Object ByteArray Converter

Rate me:
Please Sign up or sign in to vote.
2.59/5 (23 votes)
17 Jun 2004 106.1K   1.8K   22   22
this dll help users to convert between any object and byte array which will be very useful when using to insert objects into a DataBase

Introduction

this dll help users to convert between any object and byte array which will be very useful when using to insert objects into a DataBase.(specialy images)

it contain two main methods

ObjectToByteArray:

       which accept an object and return array of bytes .

ByteArrayToObject:

      which accept an array of bytes and return object.

why I make this dll?

I need in a project on automatic exam system in my work (Scientific calculation Center,Mansoura University,Egypt) to insert into database an custum object of exam data.

I'm sure that I can find a solution to this problem by add Exam Details table to my dataBase

but I hope to  use the first strategy ,So I make it.

keywords

Database,converter,image,byte array

      

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Egypt Egypt
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 5 Pin
Don R. Davidson5-Dec-12 7:29
Don R. Davidson5-Dec-12 7:29 
QuestionProblem while converting Pin
Muneswar3-Oct-07 22:18
Muneswar3-Oct-07 22:18 
Generalproblem with some objects Pin
jag_Dalton22-Feb-07 2:00
jag_Dalton22-Feb-07 2:00 
GeneralRe: problem with some objects Pin
DrPhilz28-Jun-07 1:55
DrPhilz28-Jun-07 1:55 
GeneralHuge problem with the methods Pin
Kasracer26-Jan-06 1:38
Kasracer26-Jan-06 1:38 
GeneralRe: Huge problem with the methods Pin
jigar_dotnet4-Apr-07 2:13
jigar_dotnet4-Apr-07 2:13 
QuestionConvert from object to byte array problem Pin
analyzer219-Jan-06 9:48
analyzer219-Jan-06 9:48 
AnswerRe: Convert from object to byte array problem Pin
Kasracer26-Jan-06 1:40
Kasracer26-Jan-06 1:40 
GeneralRe: Convert from object to byte array problem Pin
analyzer226-Jan-06 1:55
analyzer226-Jan-06 1:55 
GeneralRe: Convert from object to byte array problem Pin
Kasracer30-Jan-06 23:37
Kasracer30-Jan-06 23:37 
GeneralRe: Convert from object to byte array problem Pin
analyzer231-Jan-06 0:25
analyzer231-Jan-06 0:25 
GeneralRe: Convert from object to byte array problem Pin
donjefe3-Aug-06 14:54
donjefe3-Aug-06 14:54 
Generalnice one! Pin
CodeGimp26-Jun-05 23:23
CodeGimp26-Jun-05 23:23 
QuestionArticle justified? Pin
jmw18-Jun-04 2:16
jmw18-Jun-04 2:16 
AnswerRe: Article justified? Pin
Tamer Ahmed Farrag18-Jun-04 2:47
Tamer Ahmed Farrag18-Jun-04 2:47 
GeneralI update the article Pin
Tamer Ahmed Farrag17-Jun-04 23:54
Tamer Ahmed Farrag17-Jun-04 23:54 
QuestionWhy this way? Pin
mav.northwind17-Jun-04 20:19
mav.northwind17-Jun-04 20:19 
AnswerRe: Why this way? Pin
Tamer Ahmed Farrag17-Jun-04 21:42
Tamer Ahmed Farrag17-Jun-04 21:42 
GeneralRe: Why this way? Pin
mav.northwind17-Jun-04 22:08
mav.northwind17-Jun-04 22:08 
GeneralRe: Why this way? Pin
jmw18-Jun-04 2:11
jmw18-Jun-04 2:11 
GeneralRe: Why this way? Pin
Mihies19-Jun-04 3:28
Mihies19-Jun-04 3:28 
GeneralRe: Why this way? Pin
jmw19-Jun-04 4:16
jmw19-Jun-04 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.