Orbeon Form - save PDF and XML in local file share after submit/save - orbeon

Currently I have got Orbeon to send an email to me with a PDF and an XML attachment. Is there a way to get Orbean to also save the submitted form as PDF and XML files in a local (or remote) file share somewhere for further processing?

It's not possible to save to the filesystem at the moment. But you can use the send action to send XML and or PDF to a service.

Related

Can we include attachments to iCalendar invitations that are created from an MVC application

How can we send attachment along with an ics file that are created from MVC application.
We are creating the meeting invitations with data fetched from application in ics format and then downloading for the user to click on it and open in outlook.So can we add an attachment also along with the ics file so that users wen open in outlook will see the attachment along with other details.
Please somebody help.
As per https://www.rfc-editor.org/rfc/rfc5545#section-3.8.1.1 or https://icalendar.org/iCalendar-RFC-5545/3-8-1-1-attachment.html, one can ATTACH by referring to the URL of the attachment.
An example given is:
ATTACH;FMTTYPE=application/postscript:ftp://example.com/pub/
reports/r-960812.ps
Other examples elsewhere in the spec are:
ATTACH:http://example.com/public/quarterly-report.doc
or
"The following example specifies an "ATTACH" property with inline
binary encoded content information:
ATTACH;FMTTYPE=text/plain;ENCODING=BASE64;VALUE=BINARY:VGhlIH
F1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4
"
or
ATTACH;FMTTYPE=application/msword:ftp://example.com/pub/docs/
agenda.doc

Rails ActiveStorage how to Fileupload via REST API

How can I upload a file from an external service or app (iOS App, Go App, etc) to a Rails REST API which uses Active Storage local file storage?
All the tutorials I can find use HTML forms. I'd like to upload my files via a POST request to the Rails API. The main thing I am uncertain about is what headers and what kind of format I need to send the files in to the backend.
The solution was to just send normal form-data. I used Postman for testing which works great for file uploads as well http://getpostman.com
Base64 is useful for you, You can decode base64 then generate temp file and upload that file.

Create PDF file thru an online text editor and save it directly to the web server filesystem ASP.NET MVC

Hi my question is this possible?
I am currently using TinyMce and Itextsharp to create a pdf file but my problem is when I save it requires to be saved in the client's pc which is not needed I only want to saved it directly to the web server file system for the user to download anytime he wants.
so this is what I want to do.
type text in tinymce editor > create pdf > save pdf to the webserver instead of the client's pc > download the pdf anytime the user wants.
I have read about File and Memory streams but I fear they only save the data to client-side and requires the user to download it to pc.
Without going into the technical details, I don't see why this wouldn't be possible.
There are many content management systems who integrate an HTML editor into their web site so that people can create simple HTML that is then submitted to the server to be stored as HTML in the CMS.
You need to do something similar: people should submit the HTML, and then you should write an iTextSharp application that runs on the server (which is much easier than having it run on the client). This application will create a PDF that you can then store on the server. (Extra hint: I would store the original HTML as an embedded file into the PDF.)
Actually, this demo is doing more or less what you need: http://demo.itextsupport.com/xmlworker/
The end users creates some HTML. This HTML is submitted to the server. On the server, iText creates a PDF, but instead of saving it on its file system, the application sends it to the browser. It's only a matter of changing the output stream.
Right now, you're using Response.OutputStream. Instead of this output stream, you need to use a FileStream to write to the file to the hard disk (to a folder that can be accessed by the application server).
This is how you should use the iTextSharp to create the pdf.
string filePath = "~/Content/Pdf/Test.pdf"
FileStream fs = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.None);
Document doc = new Document();
PdfWriter writer = PdfWriter.GetInstance(doc, fs);
doc.Open();
doc.Add(new Paragraph("Test"));
doc.Close();

Rails, Upload and Parse Text File to Database

I have an advertising site running where users can post "headlines" and "sublines" in a form. I want to take this thing further.
Users should upload their .txt or .rtf file, comma seperated, so that it's created in my database.
Let's say this is the users rtf or whatever:
This is my headline; This is my subline;
This is my second headline; This is my second subline;
How can I achieve that this is parsed and written to my database? No csv or whatever. Just a simple text file.
Where should I put this form?
How can I parse it?
You might want to look at using Paperclip to upload the file & then you'll be able to access its data using this answer: How do you access the raw content of a file uploaded with Paperclip / Ruby on Rails?

How to upload x3dom files to be displayed like a gallery

I've been working with x3dom for the past month and now I wan to be able to display my work, does anyone know of an uploader where I could upload the x3dom file so that it is saved in a sort of image gallery, or is the only way to do it to keep copy pasting x3dom code to an html file and then upload thru ftp?
any variety of available upload scenarios will work
x3d is all text so you can store them as flat files and upload via ftp or if you want to have a template and dynamically viewable system you could store the x3d in a database and display that db info in a dynamically generated html file

Resources