Jump to content

File Upload Control


soona

Recommended Posts

  • 2 weeks later...

The only thing I can think of would be to serialize the image to a string and store that string in the XML, but I can't imagine that being very efficient.If that's the route you're looking for, you might check out the BinaryFormatter class.I've used the BinaryFormatter, coupled with the GZipStream, to serialize objects in the past.

Link to comment
Share on other sites

  • 1 month later...
The only thing I can think of would be to serialize the image to a string and store that string in the XML, but I can't imagine that being very efficient.If that's the route you're looking for, you might check out the BinaryFormatter class.I've used the BinaryFormatter, coupled with the GZipStream, to serialize objects in the past.
You Would upload images through file upload control and save the url on database through insert sql command after that you can access datatable in xml in file in your desired format. Many function are available in asp.net for accessing datasource to xml file...
Link to comment
Share on other sites

  • 2 months later...

I think I understand what you are looking for but it isn't an efficient way to do things. I'd suggest doing one of the following:a.) upload file to the server and store (in a database) its physical location relative to your web site root address. Then when you query the database you can build a url from the result set.b.) upload file to the server and store (in an XML document) its physical location relative to your web site root address. Then when you read the XML file you can build a url from that information.Does that make sense?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...