Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI EXPERTS

I am saving a blob image in my local drive using filestream. Image available in the database will be in a proper manner. After saving i can't able to see the preview available in the image it is showing
"NO PREVIEW AVAILABLE"

Below is the code i am using

VB
Dim filepath As String = "d:/"
            filepath = filepath + Now.Second.ToString() & ".BMP"

 Dim fs As New FileStream(filepath, FileMode.Create, FileAccess.ReadWrite)
            Dim blob As Byte() = CType(dt.Rows(0).Item(0), Byte())
            fs.Write(blob, 0, blob.Length)
 fs.Close()


Kindly provide your feedback.

Rgds
Jagadesh
Posted
Updated 23-Apr-13 22:15pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900