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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -