Skip to content

Instantly share code, notes, and snippets.

View serut's full-sized avatar

serut

  • French
View GitHub Profile
@raffaeleguidi
raffaeleguidi / Application.java
Created October 1, 2011 16:35
A simple file upload and renderBinary example using Play! 1.2.3 and GAE (google appengine) 1.5.6
package controllers;
import play.*;
import play.data.Upload;
import play.db.Model.BinaryField;
import play.libs.MimeTypes;
import play.mvc.*;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;