so you have a segment of binary data and you want to convert it into its
original format? Well, if you have former file name (with extension), then
it is pretty easy... else you will have the same problem as we had while
developing g-hive... you have to search data inside the byte array and find
out what it is (every file type has its specific properties). Or you can
rebuild database to contain file name as well :)

2009/8/18 gagandeep sharma <[email protected]>

> actually sir, in my webform i've a file upload web control, when some user
> attach any kind of document with a webform, this attachment stored in byte
> format in sql server 2000 db---
> the code i used is like below:-
>
> BtnUpload.PostedFile.InputStream.Read(imgbytes, 0, imgbytes.Length)
> but now i facing a problem, that how to read back the attachment into
> format
> for example if the user attach a image file-- this image stored in db in
> byte format
> and now how i read back it into original  format---
>
> thats it
> if u know this sir, then pls help me
> thanks
>
>
>
> On Tue, Aug 18, 2009 at 7:24 AM, Benj Nunez <[email protected]> wrote:
>
>>
>> Might help if you be more specific.
>>
>>
>> Regards,
>>
>>
>> Benj
>>
>> On Aug 17, 8:36 pm, gagandeep sharma <[email protected]> wrote:
>> > sir how to convert binary data stored in database  back it into original
>> > format
>> >
>> > --
>> > GO and LEAD from Whereever You are.
>> > Think Big and Think Fast.
>>
>
>
>
> --
> GO and LEAD from Whereever You are.
> Think Big and Think Fast.
>
>
>

Reply via email to