• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSData storage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData storage


  • Subject: Re: NSData storage
  • From: John Andersson <email@hidden>
  • Date: Wed, 25 Feb 2004 14:00:26 +0100

If you are using OpenBase SQL, try the "object" data type in that column.

Brg
/John

2004-02-25 kl. 13.40 skrev Max Lovell:

Hi,
at present I'm creating a simple web application that needs to store
uploaded files into a database.
I'm using the OpenBase database app that came with the webobjects
developer kit.
I successfully upload the file using the WOFileUpload component.
I then display the bytes that have been uploaded as a test to make sure
everything is working. The file data is stored in a NSData object.
I then call saveChanges() on the editing context to store the NSData
into the database.
This all appears to work and when I bring up a page to view the file
bytes, they all appear correct.
The problem I get is that when I log out and start a new session. The
web app can't read the NSData from the database, although any strings
and numbers I have stored there are read successfully.
I've tried specifying the NSData, in EOModeler, with three separate
external types (varchar/binary/char) to see if that improved things but
it did not.
i noticed that in the database column where I store the f NSData I
always get an 8 digit hex number like "1aaaa000".
Has anyone any ideas what I am doing wrong.
Thanks in advance,
Max.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSData storage (From: Max Lovell <email@hidden>)

  • Prev by Date: RE: Bogous HTTP headers from adaptor
  • Next by Date: Re: Is WebObjects Dead?
  • Previous by thread: NSData storage
  • Next by thread: Re: NSData storage
  • Index(es):
    • Date
    • Thread