Imagen desde hoja de calculo (google sheets) mediante una url de Google drive, tengo las url de imagen en mi hoja y las de google drive no se ven en mi aplicación de app inventor

Subject title and content translated:
Image from spreadsheet (google sheets) through a Google drive url, I have the image urls in my sheet and the google drive ones are not seen in my app inventor application

Hello, how can I see an image from a spreadsheet (google sheets) through a Google drive url, I have the image urls in my sheet and the google drive ones are not visible in my app inventor application

this type of url does not show the image in the app
https://drive.google.com/file/d/14YLPFBp..........hlamCO/view?usp=drivesdk

hola como puedo ver imagen desde hoja de calculo (google sheets) mediante una url de Google drive, tengo las url de imagen en mi hoja y las de google drive no se ven en mi aplicación de app inventor

este tipo de url no muestra la imagen en la app
https://drive.google.com/file/d/14YLPFBp..........hlamCO/view?usp=drivesdk

How are you accessing the data in the google sheet, to get the image urls to the AppInventor App ?

Show your relevant blocks.

CON ESTAN FUNCION PUBLICADA POR OTRO USUARIO Y FUNCIONA EN TODAS LAS URL EXCEPTO LAS DE GOOGLE DRIVE

function doGet(e){

var accion = e.parameter.accion;

var columna2 = e.parameter.num;

var valores = e.parameter.valores;

var datos = buscar(accion,columna2,valores);

var respostaJSON = "[" + JSON.stringify(datos) + "]";

return ContentService.createTextOutput(respostaJSON).setMimeType(ContentService.MimeType.JSON);

}

function buscar(accion,columna2,valores){

var sh = SpreadsheetApp.openById(ssId) ;

var sheet = sh.getSheets();

if(accion=="contar"){

var numpreg = sheet[0].getDataRange().getNumRows()-1;

var resultado = {"accion": "contar", "numpreg" : numpreg};

return resultado;

};

if(accion=="anadir"){

var datos = valores.split(',') ; 

sheet[0].appendRow(datos);

return {"accion" : accion,"valores" : datos };  

}else{

var datos = sheet[0].getDataRange().getValues();

for(var i in datos){

  var row = datos[i]; 

  var num = row[0] ;  

  if (num == columna2){

    var num = row[0] ;  

    var columna2 = row[1] ;  

    var columna3 = row[2] ;  

    var columna4 = row[3] ;

    var columna5 = row[4]; 

    var columna6 = row[5] 

    var columna7 = row[6] ;  

    if(accion=="consultar"){

var resultado = {"accion": "consultar", "num" : num , "columna2" : columna2, "columna3" : columna3 , "columna4" : columna4 , "columna5" : columna5 , "columna6" : columna6 , "columna7" : columna7 };

    };      

   return resultado; 

  };

};

};

return {"num" : "" };

}

Y ESTOS BLOQUES

BLOQUES COMPLETOS


blocks (1)

hola a todos
ya pude solucionar el problema

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.