amazon web services - How to use RandomAccessFile through AWS lambda function? -


we package few resource files in package. though can access through inputstream through getresourceasstream, how can access randomaccessfile? believe file zipped , may not feasible access randomaccessfile, there alternative achieve said functionality?

got working using below line:

filename = getclass().getresource(filename).getfile();

one can access randomaccessfile using:

randomaccessfile raf = new randomaccessfile(filename,"r");

so if filename "/abc.properties" under resources folder, appending above work fine. appends "/var/task/"


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -