<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: MHTTPFilePoster Library</title>
	<atom:link href="http://www.mobvcasting.com/wp/?feed=rss2&#038;p=457" rel="self" type="application/rss+xml" />
	<link>http://www.mobvcasting.com/wp/?p=457</link>
	<description>Mobile Video (and other media) Casting</description>
	<pubDate>Wed, 08 Sep 2010 22:58:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Toni</title>
		<link>http://www.mobvcasting.com/wp/?p=457&#038;cpage=1#comment-26165</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Wed, 27 Jan 2010 17:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=457#comment-26165</guid>
		<description>Muchas gracias por la explicación de los métodos y en general a los que han desarrollado esta librería! sin la comunidad no seriamos nada</description>
		<content:encoded><![CDATA[<p>Muchas gracias por la explicación de los métodos y en general a los que han desarrollado esta librería! sin la comunidad no seriamos nada</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://www.mobvcasting.com/wp/?p=457&#038;cpage=1#comment-26141</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Sat, 11 Apr 2009 22:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=457#comment-26141</guid>
		<description>Great Notes from Lucas Cacela:

Hi, 
i'm new to Processing and Mobile Processing and i found out very hard to find stuff related to Mobile Processing over the internet, so i tried to put together some notes and write a few lines about the MHTTPFilePoster library, a kind of reference, maybe it helps someone that is passing trought the same i passed, if you like it and think it can be usefull to someone, you can use it (maybe link to it or post it in the library page), feel free to correct any mistakes i made. Once again, thank you for your library, it was very helpfull to me.

Here it goes: (i tried to explain in order what you need to have in your sketch to use the library)

import com.mobvcasting.mhttpfileposter.*;

    Imports the library into the sketch.

MHTTPFilePoster poster;

    Declares the element "poster" as a MHTTPFilePoster type where "poster" could be any valid variable.

 String[ ][ ] formvars = new String[4][2];
      formvars[0][0] = "subject";
      formvars[0][1] = "the subject";
      formvars[1][0] = "message_text";
      formvars[1][1] = "the message";
      formvars[2][0] = "form_submitted";
      formvars[2][1] = "true";
      formvars[3][0] = "submit";
      formvars[3][1] = "submit";

    A two dimensional array of form variables that need to be posted along with the file upload to make the form that the file is going to function correctly.

poster = new MHTTPFilePoster(midlet, url, filename, form's input element, byte[ ] var, formvars);

    Assigns the information required to file uploading to the "poster".
        midlet: the sketch that will upload the file, generally use "this".
        url: url of the form that will receive the file (example at http://itp.nyu.edu/~sve204/mobilemedia/week3.html).
        filename: name of the file that is beeing uploaded, include the extension (example: "image.jpg")
        form's input element: the name of the form's element that will receive the file (example: "bytes" in the form at http://itp.nyu.edu/~sve204/mobilemedia/week3.html)
        byte[ ] var: the name of the byte[] type var that contais the data that will be uploaded as a file.
        formvars: the vars explained above.

poster.startUpload();

    Uploads the file as declaired above.

poster.getStatus();

    Returns an integer with the status of the file upload where:
    0: Not Started.
    1: Started.
    2: Complete.
    3: Error during upload.

poster.getServerResponse();

    Returns a string with the server response to your upload.</description>
		<content:encoded><![CDATA[<p>Great Notes from Lucas Cacela:</p>
<p>Hi,<br />
i&#8217;m new to Processing and Mobile Processing and i found out very hard to find stuff related to Mobile Processing over the internet, so i tried to put together some notes and write a few lines about the MHTTPFilePoster library, a kind of reference, maybe it helps someone that is passing trought the same i passed, if you like it and think it can be usefull to someone, you can use it (maybe link to it or post it in the library page), feel free to correct any mistakes i made. Once again, thank you for your library, it was very helpfull to me.</p>
<p>Here it goes: (i tried to explain in order what you need to have in your sketch to use the library)</p>
<p>import com.mobvcasting.mhttpfileposter.*;</p>
<p>    Imports the library into the sketch.</p>
<p>MHTTPFilePoster poster;</p>
<p>    Declares the element &#8220;poster&#8221; as a MHTTPFilePoster type where &#8220;poster&#8221; could be any valid variable.</p>
<p> String[ ][ ] formvars = new String[4][2];<br />
      formvars[0][0] = &#8220;subject&#8221;;<br />
      formvars[0][1] = &#8220;the subject&#8221;;<br />
      formvars[1][0] = &#8220;message_text&#8221;;<br />
      formvars[1][1] = &#8220;the message&#8221;;<br />
      formvars[2][0] = &#8220;form_submitted&#8221;;<br />
      formvars[2][1] = &#8220;true&#8221;;<br />
      formvars[3][0] = &#8220;submit&#8221;;<br />
      formvars[3][1] = &#8220;submit&#8221;;</p>
<p>    A two dimensional array of form variables that need to be posted along with the file upload to make the form that the file is going to function correctly.</p>
<p>poster = new MHTTPFilePoster(midlet, url, filename, form&#8217;s input element, byte[ ] var, formvars);</p>
<p>    Assigns the information required to file uploading to the &#8220;poster&#8221;.<br />
        midlet: the sketch that will upload the file, generally use &#8220;this&#8221;.<br />
        url: url of the form that will receive the file (example at <a href="http://itp.nyu.edu/~sve204/mobilemedia/week3.html" rel="nofollow">http://itp.nyu.edu/~sve204/mobilemedia/week3.html</a>).<br />
        filename: name of the file that is beeing uploaded, include the extension (example: &#8220;image.jpg&#8221;)<br />
        form&#8217;s input element: the name of the form&#8217;s element that will receive the file (example: &#8220;bytes&#8221; in the form at <a href="http://itp.nyu.edu/~sve204/mobilemedia/week3.html" rel="nofollow">http://itp.nyu.edu/~sve204/mobilemedia/week3.html</a>)<br />
        byte[ ] var: the name of the byte[] type var that contais the data that will be uploaded as a file.<br />
        formvars: the vars explained above.</p>
<p>poster.startUpload();</p>
<p>    Uploads the file as declaired above.</p>
<p>poster.getStatus();</p>
<p>    Returns an integer with the status of the file upload where:<br />
    0: Not Started.<br />
    1: Started.<br />
    2: Complete.<br />
    3: Error during upload.</p>
<p>poster.getServerResponse();</p>
<p>    Returns a string with the server response to your upload.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
