ContributionsMost RecentMost LikesSolutionsRe: Take upstream file as an input for zipfile read snap Hello, After REST POST, I’m using multipart reader and after that I have access to content-type, content-id and content-disposition. I can’t directly use Document to Binary after REST GET. Thanks Re: Read a zip file We have a similar situation, we are making REST POST request and getting back zip in response. I want to rename files (files which we get after extracting zip file). Is there a way, we can perform this task without writing the file to the temporary location? Thanks. Take upstream file as an input for zipfile read snap Hello, I am getting a zip file from a rest request. I want to rename files (files we get after we extracting the zip). I don’t want to write the zip file in sldb and then read it using zipfile read. I want to directly use file coming from upstream in zipfile read. Is it possible to achieve? Thanks for your time, Smit Re: Error view gets executed without an error Thanks a lot. Error view gets executed without an error Hello, While using rest post snap, I have error view enabled. Snap runs without any error, but still error view gets executed. Error view updates a file in JSON format. My goal is to update the file only when I get error. Thanks for you time, Smit SolvedDownloading attachment from a REST POST response with content-type multipart/mixed Hello, My goal is to download an attachment from a REST POSAT response. The response header content-type value is multipart/mixed and a boundary. I used multipart reader to extract the file. With the help of regex I have set the Content-Type property of multipart reader as “multipart/mixed;boundary=_Part_16478_1527467874.1613153938198”. I try to write file afterwards. But multipart reader doesn’t produces any output (file writer is never executed). Your suggestions will be helpful in finding me the right solution. Thanks, Smit Extract attachment from content-type "multipart/mixed" Hello, Structure of pipeline: REST POST → mapper outputs binary view → multipart reader REST POST’ response has content-type: “content-type”:[{ “value”: “multipart/mixed” “value_1”: " \tboundary=“----=text for boundary”" }] response also has a zip attachment. mapper takes document view and outputs response with binary view. Multipart reader: Content-Type : $.headers[‘content-type’] provided content type from the response. The multipart reader fails: Failure: class com.google.common.collect.AbstractMapBasedMultimap$RandomAccessWrappedList cannot be cast to class java.lang.String (com.google.common.collect.AbstractMapBasedMultimap$RandomAccessWrappedList is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @4e282e97; java.lang.String is in module java.base of loader ‘bootstrap’), Reason: Snap failed unexpectedly and did not provide any reason Feel free to point out my mistakes. Thanks for your time, Smit Re: Unix timestamp in snaplogic Thanks for your response, I’m currently using this solution. Re: Unix timestamp in snaplogic Thank you for your quick response. Unix timestamp in snaplogic Hello, I’m trying to generate time in unix timestamp format. Is there a snap function which can perform this task? Thanks, Smit