Answered by:
How to upload multiple image in single OneNote page ?

Question
-
I am creating note with image using OneDrive api from my iOS application. This is the code i did for post request.
NSString *simpleHtml = [NSString stringWithFormat:@"<html>"
"<head>"
"<title>Created By PhotoMoxie</title>"
"<meta name=\"created\" content=\"%@\" />"
"</head>"
"<body>"
"<p>This is some <b>PhotoMoxie</b> <i>Created</i> note. </p>"
"</body>"
"<h1>This is a note with image.</h1>"
"<img src=\"%@\" alt=\"image\" >"
"</body>"
"</html>", date,imageString];
NSData *presentation = [simpleHtml dataUsingEncoding:NSUTF8StringEncoding];
NSMutableURLRequest * request = [[NSMutableURLRequest alloc] initWithURL: [[NSURL alloc] initWithString:fullEndpoint]];
request.HTTPMethod = @"POST";
request.HTTPBody = presentation;
[request addValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
But now the problem is i need to attach multiple image in this page. In above request i set one image but i need to make it multiple because there is no specific only one image. My request is dynamic so may be there are one image, two images or three also etc. For multiple image in above request i am getting error code 413 for two image also.Please help me on this how can i do this.
- Edited by mitesh.dobareeya Monday, January 30, 2017 6:19 AM
- Moved by litdev Monday, January 30, 2017 1:26 PM
Monday, January 30, 2017 4:43 AM
Answers
-
OneDrive-api forum on MSDN was retired and discussions moved to stackoverflow
http://stackoverflow.com/questions/tagged/onedrive-api
or for OneNote
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Edited by Dave PatrickMVP Monday, January 30, 2017 1:58 PM
- Marked as answer by mitesh.dobareeya Monday, January 30, 2017 4:19 PM
Monday, January 30, 2017 1:53 PM
All replies
-
This is clearly NOT Small Basic. You should look for another forum.
Jan [ WhTurner ] The Netherlands
- Marked as answer by mitesh.dobareeya Monday, January 30, 2017 12:09 PM
- Unmarked as answer by mitesh.dobareeya Monday, January 30, 2017 12:09 PM
Monday, January 30, 2017 10:50 AM -
Please let me know which forum i need to select for OneNote related issues.
- Edited by mitesh.dobareeya Monday, January 30, 2017 11:02 AM
Monday, January 30, 2017 11:02 AM -
You could go to https://answers.microsoft.com/en-us/onedrive?auth=1 for a start
Jan [ WhTurner ] The Netherlands
Monday, January 30, 2017 11:15 AM -
I asked my question to community but they told me to go for forum. please see this https://answers.microsoft.com/en-us/onedrive/forum/odwork-odfiles/how-to-upload-multiple-image-in-single-onenote/0b59cd09-8c20-406e-9372-c23e0f602938Monday, January 30, 2017 11:23 AM
-
mitesh.dobareeya,
This seems like a question you need to be asking Apple Support or one of their forums. I understand you are using onedrive. Who supports the coding that your are trying to do? I would think you need to go there for your question. The forum you posted your question to is the Small Basic forum and it has nothing to do with IOS.
JR
Monday, January 30, 2017 12:12 PM -
OneDrive-api forum on MSDN was retired and discussions moved to stackoverflow
http://stackoverflow.com/questions/tagged/onedrive-api
or for OneNote
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Edited by Dave PatrickMVP Monday, January 30, 2017 1:58 PM
- Marked as answer by mitesh.dobareeya Monday, January 30, 2017 4:19 PM
Monday, January 30, 2017 1:53 PM -
jricestk,
Sorry for inconvenience but i can not found any related forum category for OneDrive or OneNote so it is my mistake that i selected this forum. And the coding i did, it is provided by Microsoft so there is no any relation with Apple.
Monday, January 30, 2017 4:19 PM -
Thank you for this suggestion. Now i posted my question on stackoverflow.Monday, January 30, 2017 4:21 PM
-
Sounds good, you're welcome.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.Monday, January 30, 2017 4:21 PM