Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-24-2009, 05:56 AM   #1 (permalink)
Jindal
Registered Member
 
Join Date: Jan 2009
Location: India
Posts: 107
Jindal is on a distinguished road
Default Problem with Bytes Array..!!

Hi,

I am trying to convert data into bytes. i am using following,

Code:
NSData *data1 = [NSData dataWithContentsOfFile:FilePath];
	NSUInteger len = [data1 length];
	Byte *byteData = (Byte*)malloc(len);
	memcpy(byteData, [data1 bytes], len);
Its the correct method?

After converting into bytes i have to pass it onto web service. How i can pass it?
in case of string we write %d
in case of integer %i
what will be in bytes?

Kindly guide me,
__________________
Thank You,
Jindal is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,421
Threads: 94,016
Posts: 402,537
Top Poster: BrianSlick (7,978)
Welcome to our newest member, maryleeag34
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.