Menu

Save a file

2004-11-18
2013-03-07
  • Nobody/Anonymous

    Hi.

    I can save a file.txt in a DataBase using your framework.

    saludos

    Victo (Madrid - Spain)

     
    • Richard Banks

      Richard Banks - 2004-11-18

      If you mean can you save a file into a BLOB/Image/Binary database column, then the answer is Yes.

      How to do it?

      Define a property that is based on a byte array and map it to the Image column in the database

      You then need to change your application so it can convert the file to binary and restore from binary as appropriate (The framework won't do that for you).

      - Richard.

       
    • Nobody/Anonymous

      Hi.
      I am trying use the following code:

      dim f as System.io.FileStream = new System.io.FileStream(path,IO.file.mode.open, io.fileAccess.read)
      obj.fichero=f

      obj.save

      Error " Inner exception message: El objeto debe implementar IConvertible"

       
    • Nobody/Anonymous

      For get it.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.