image url : To be checked

This commit is contained in:
akilan
2020-05-14 14:31:00 +04:00
parent b4f9978b36
commit 90f5606061
2 changed files with 4 additions and 3 deletions

View File

@@ -92,7 +92,8 @@ client.on('message', async msg =>
console.log(product_image);
} */
else if(msg.body.startsWith('product image:')){
const attachmentData = Number(msg.body.slice(13));
// const attachmentData = Number(msg.body.slice(13));
product_image = Number(msg.body.slice(13));
console.log("".concat("Product image = ", product_name));
}
else if(msg.body == "!done")
@@ -101,7 +102,7 @@ client.on('message', async msg =>
var comma = "," ;
// Using currently image Url until issue fixed
/* s = "\n".concat(product_id,comma,product_name,comma,description,comma,cost,comma,"data:image/jpeg;base64 ",product_image["data"]); */
s = "\n".concat(product_id,comma,product_name,comma,description,comma,cost,comma,product_image["data"]);
s = "\n".concat(product_id,comma,product_name,comma,description,comma,cost,comma,product_image);
console.log(a)
a = a.concat(s)