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

python - Getting ESC characters and non-printables from UDP socket / buffer -

git - TortoiseGit does not show commit log properly -