<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Pr\00E9format\00E9 HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PrformatHTMLCar
        {mso-style-name:"Pr\00E9format\00E9 HTML Car";
        mso-style-priority:99;
        mso-style-link:"Pr\00E9format\00E9 HTML";
        font-family:"Courier New";
        mso-fareast-language:FR;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Hi Nick,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thank you for your answer.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I know thoses links and &nbsp;they don&#8217;t help me.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>So i&#8217;m going to explain my project.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>At first, I take files with the fileupload function, files could be txt, jpg, pdf. I receive WAFile &nbsp;( perfect, no problem)<o:p></o:p></p><p class=MsoNormal>In a second time, I&#8217;ve got to backup the state of the system using an xml file. I don&#8217;t specially need to export datas, my files could stay on the server.<o:p></o:p></p><p class=MsoNormal>My problem is that, later, when I need to import a backup, I&#8217;ve got to rebuild a WAFile for each files.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>So I would like to create a WAFile from a file who is already on the server.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Greeting&nbsp;<span style='font-family:Wingdings'>J</span><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>RenaudVilain<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><pre>&gt;HI Renaud<o:p></o:p></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;&gt;<i>&nbsp; I&#8217;m trying to put an image or a binary file (pdf, doc,..), stored on the<o:p></o:p></i></pre><pre>&gt;&gt;<i> server, into a WAFile. Could you help me please<o:p></o:p></i></pre><pre>&gt;&gt;<i><o:p>&nbsp;</o:p></i></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;Can you be a little more precise about the problem you having.<o:p></o:p></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;Try bringing up references to WAFile (shift+cmd+n) to give you a few<o:p></o:p></pre><pre>&gt;examples to get you started.<o:p></o:p></pre><pre>&gt;Perhaps also the file upload example<o:p></o:p></pre><pre>&gt;<a href="http://book.seaside.st/book/fundamentals/forms/fileupload">http://book.seaside.st/book/fundamentals/forms/fileupload</a><o:p></o:p></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;Or perhaps file libraries may be of use:<o:p></o:p></pre><pre>&gt;<a href="http://book.seaside.st/book/in-action/serving-files/filelibraries/creating">http://book.seaside.st/book/in-action/serving-files/filelibraries/creating</a><o:p></o:p></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;HTH<o:p></o:p></pre><pre>&gt;<o:p>&nbsp;</o:p></pre><pre>&gt;Nick<o:p></o:p></pre><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>