Created
December 23, 2011 01:31
-
-
Save singhgurjeet/1512679 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected long uploadGraph(ErgGraph graph) throws IOException { | |
try { | |
InputStream stream = ErgSerializer.serializeErgGraph(graph); | |
return filesClient.uploadAsFile(stream, graph.getErgID() + "", null).get().getFileId(); | |
} catch (Exception e) { | |
throw new IOException("Unable to cache ErgGraph"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment