Easy way of retreiving image from Intrinsic database - and exporting it as file?
-
11 พฤษภาคม 2555 22:07
Hello!
is there a way of doing this?
client would like to "download" image as the exactly the same properties file had at the time of attaching.
this is surly possible, as data is there, but what should one do in order to make thi happen?
THANKS!
regards,
Miro
ตอบทั้งหมด
-
14 พฤษภาคม 2555 8:02
Open a new FileStream then write the image to it. The image is a byte array, so it can be put in FileStream.Write
Silverlight 4 (LS1), I think, only allows you to open a filestream with a dialog box, and the user must enter the filename themselves.
Silverlight 5 (LS2) allows you to specify the filename and directory to save to.Free Visual Studio LightSwitch extensions: Elyl's Extensions http://visualstudiogallery.msdn.microsoft.com/bbe013bf-45b6-46c4-ba13-537cc23c5118
- เสนอเป็นคำตอบโดย Simon Jones [MSDL] 14 พฤษภาคม 2555 10:55
- ทำเครื่องหมายเป็นคำตอบโดย Otomii LuModerator 21 พฤษภาคม 2555 7:58
-
14 พฤษภาคม 2555 8:50
Thanx, i will try this.
just one thought - image can be stored to database from multiple sources, like JPG, PNG... how user can know what extension to use? or just go ahead with JPG and hope for the best? :)
-
14 พฤษภาคม 2555 8:52I think the file dialog box in SL4 allows for specifying a filename extension, just not the filename itself, or the directory.
Free Visual Studio LightSwitch extensions: Elyl's Extensions http://visualstudiogallery.msdn.microsoft.com/bbe013bf-45b6-46c4-ba13-537cc23c5118
-
14 พฤษภาคม 2555 9:14For you have used the database to save the images , why not give a column to save the extension?