• 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: Problems with NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSData


  • Subject: Re: Problems with NSData
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 6 Mar 2008 11:52:08 -0500

5 while ((aByte = bis.read()) != -1) {//!= -1
8 imageFile = new NSData(currentPart.getInputStream(), aByte);
Aside from whether it changed in 5.4 or not, this code just looks wrong ... When the stream is done, aByte will always = -1, so you're passing in -1 as the chunk size to NSData?

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problems with NSData (From: Frank Gibau <email@hidden>)

  • Prev by Date: RE: Workaround for WO 5.4 "WebAssistant: You backtracked too far"
  • Next by Date: Re: Workaround for WO 5.4 "WebAssistant: You backtracked too far"
  • Previous by thread: Problems with NSData
  • Next by thread: RE: Workaround for WO 5.4 "WebAssistant: You backtracked too far"
  • Index(es):
    • Date
    • Thread